@nav-size-height: 60px;
@layout-max-width: 1100px;

.layout {
  width: 100%;
  height: 100%;
}

.layout-navbar {
  padding: 28px 32px 20px;
  margin-bottom: 25px;
  background-color: var(--color-fill-2);
  display: flex;
  justify-content: space-between;
  align-items: center;

  .right {
    :global(> span) {
      display: flex;
      align-items: center;
    }
  }
}

.layout-sider {
  position: fixed;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  box-sizing: border-box;

  &::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
  }

  > :global(.arco-layout-sider-children) {
    overflow-y: hidden;
  }
}

.menu-wrapper {
  overflow: auto;
  height: 100%;

  &::-webkit-scrollbar {
    display: none;
  }

  :global(.arco-menu-inner) {
    padding: 0 20px;
  }

  :global(.arco-menu-inline-header) {
    padding: 0 20px;
    font-weight: 500;
    color: #fff;
    line-height: 48px;

    &:hover {
      color: #c8ee44;
      background: transparent;
    }
  }

  :global(.arco-menu-inline-header.arco-menu-selected) {
    color: #fff;

    &:hover {
      color: #c8ee44;
      background: transparent;
    }
  }

  :global(.arco-menu-inline-header.arco-menu-selected[aria-expanded='false']) {
    color: var(--color-text-1);
    background: #c8ee44;
  }

  :global(.arco-menu-item) {
    padding: 0 20px;
    border-radius: 5px;
    color: #fff;
    line-height: 48px;

    &:hover {
      color: #c8ee44;
      background: transparent;
    }
  }

  :global(.arco-menu-item.arco-menu-selected) {
    color: var(--color-text-1);
    background: #c8ee44;
  }

  :global(.arco-menu-inline-header > .arco-menu-icon-suffix) {
    right: 20px;
  }
}

.icon {
  margin-right: 16px;
  font-size: 24px;
}

.icon-empty {
  width: 12px;
  height: 18px;
  display: inline-block;
}

.layout-content {
  background-color: var(--color-fill-2);
  min-width: @layout-max-width;
  min-height: 100vh;
  transition: padding-left 0.2s;
  box-sizing: border-box;
}

.layout-content-wrapper {
  height: 100%;
  padding: 0 32px;
}

.layout-breadcrumb {
  margin-bottom: 16px;
}

.spin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - @nav-size-height);
}
